import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    token: "",
    ids: [],
  },
  mutations: {
    saveToken(stata, payload) {
      stata.token = payload;
    },
    savevuex(stata, payload) {
      stata.ids.push(payload);
    },
  },
});
export default store;
